var express = require('express');
var router = express.Router();
var { userModel } = require('../../model/model')


/* GET home page. */
router.get('/getdata', async (req, res) => {
    let data = await userModel.find();
    res.send({
        code: 200,
        data
    });
});

module.exports = router;
